﻿using CommonBase;
using CustomControls.PoptipCtr;
using ManagementToolClient.PageDeclaration;
using ManagementToolClient.Views;
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManagementToolClient
{
    public class ManagementToolClientModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {

        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<IndexPage>(SystemResourceExten.Nav_IndexPageView);
            containerRegistry.RegisterForNavigation<CompanyManagerPage>(SystemResourceExten.Nav_CompanyManagerPageView);
            containerRegistry.RegisterForNavigation<DeviceManagerView>(SystemResourceExten.Nav_DeviceManagerView);
            LayDialogControl.RegisterDialog<AddCompanyWindow>(SystemResourceExten.Nav_AddCompanyWindow);
            LayDialogControl.RegisterDialog<AddDevicePage>(SystemResourceExten.Nav_AddDevicePage);
            LayDialogControl.RegisterDialog<AddDeviceModuleView>(SystemResourceExten.Nav_AddDeviceModulePage);
            LayDialogControl.RegisterDialog<AddUpdateFile>(SystemResourceExten.Nav_AddUpdateFile);
        }
    }
}
